package com.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.common.utils.PageUtils;
import com.gulimall.product.entity.AttrEntity;
import com.gulimall.product.vo.AttrVo;
import com.gulimall.product.vo.AttrVoRes;
import com.gulimall.product.vo.GroupWithAttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author Rookie-886
 * @email ${email}
 * @date 2021-03-14 16:30:53
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(String type,Long cateLogId,Map<String, Object> params);

    AttrVoRes queryAttrInfo(Long attrId);

    void updateDetail(AttrVo attrVo);

    void saveDetail(AttrVo attrVo);

    List<AttrEntity> queryRelationList(Long attrGroupId);

    PageUtils queryNoRelationList(Map<String, Object> params, Long attrGroupId);

    List<GroupWithAttrVo> getGroupWithAttr(Long cateId);
}

